import request from '@/utils/request'
export default {
  getPageList(data) {
    return request({
      url: '/getCommentPage/'+data.courseId+'/'+data.pageNum+'/'+data.pageSize,
      method: 'get',
      data
    })
  },
  addComment(comment) {
    return request({
      url: `/addComment`,
      method: 'post',
      data: comment
    })
  },
  delComment(id) {
    return request({
      url: `/delComment/${id}`,
      method: 'delete'
    })
  },
}
